var CONFIG = {
  python:{
  document_title: "python3 入门",
  index: "python/PythonBasis/python0/WhyStudyPython.md",
  sidebar_file: "python3.md"
  },
  interview:{
    document_title: "interview",
    index: "interview/面试题精简版本.md",
    sidebar_file: "interview.md"
}
};

function GetQueryString(name) {
  var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)","i");
  var r = window.location.search.substr(1).match(reg);
  if (r!=null) return decodeURI(r[2]); return null;
}
var type = GetQueryString('type')

// **************************
// DON'T EDIT FOLLOWING CODES
// **************************
function addConfig(obj, conf) {
  Object.keys(conf).forEach(function (key) {
    obj[key] = conf[key];
  });
}
if(CONFIG[type]){
addConfig(ditto, CONFIG[type])

ditto.run();
}
